package PTA_JAVA.BaseTest.Demo04;

import java.util.*;
class Main{

    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            int score = sc.nextInt();
            System.out.println();
            Grade a=getGrade(score);
            System.out.println(a.getDesc());
            printGradeInfo(a);
        }
    }
    public static Grade getGrade(int score){
        Grade a;
        switch(score/10){
            case 10:
            case 9:return a=Grade.A;
            case 8:return a=Grade.B;
            case 7:return a=Grade.C;
            case 6:return a=Grade.D;
            default :return a=Grade.E;
        }
    }
    public static void printGradeInfo(Grade grade){
        System.out.println("class name="+Grade.class);
        System.out.println("grade value="+grade);
    }
}
enum Grade{
    A("Excellent"),B("Good"),C("Average"),D("Fair"),E("Poor");
    private String desc;
    Grade(String desc) {
        this.desc=desc;
    }
    String getDesc(){
        return desc;
    }
}
